<cfquery name = "quserblog" datasource="#request.dsn#" maxrows="5">
SELECT * FROM blog_posts JOIN blog_categories ON blog_posts.cid = blog_categories.id JOIN contacts_users ON contacts_users.id = blog_posts.userid
WHERE blog_posts.userid = <cfqueryparam value="#pid#" cfsqltype="cf_sql_integer">
ORDER BY blog_posts.b_postedon DESC
</cfquery>